package com.test.SocketDemo;

import java.io.IOException;
import java.io.PrintWriter;
import java.net.Socket;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/06/07 16:01
 **/
public class SocketClient {
    public static void main(String[] args) throws IOException {
        Socket chatSocket = new Socket("127.0.0.1", 4242);
        PrintWriter printWriter = new PrintWriter(chatSocket.getOutputStream());
        printWriter.println("message to send");
    }
}
